prevent call site that doesn't check return values to try to do
operation on domain 0.
instead they use domid -1, which is unlikely to exist.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
flags = info->hvm ? XEN_DOMCTL_CDF_hvm_guest : 0;
flags |= info->hap ? XEN_DOMCTL_CDF_hap : 0;
- *domid = 0;
+ *domid = -1;
/* Ultimately, handle is an array of 16 uint8_t, same as uuid */
memcpy(handle, info->uuid, sizeof(xen_domain_handle_t));